using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutCustomerBusiness
	{
		#region code CMS

        public static List<OutCustomer> GetOutCustomerListSearch(string user, string mail, string phone, string fullname, string idcard, int stt, int pageIndex, int pageSize, ref int totalRecord)
        {
            var result = FreshCmsDataAccessProvider.OutCustomer.GetOutCustomerListSearch(user, mail, phone, fullname, idcard, stt, pageIndex, pageSize, ref totalRecord);
            return result;
        }

        public static List<OutCustomer> GetOutCustomerList()
        {
		    var result = FreshCmsDataAccessProvider.OutCustomer.GetOutCustomerList();
		    return result;
        }

		public static List<OutCustomer> GetOutCustomerListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.OutCustomer.GetOutCustomerListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static OutCustomer GetOutCustomerById(int cusId)
        {
		    var result = FreshCmsDataAccessProvider.OutCustomer.GetOutCustomerById(cusId);
            return result;
        }

        public static int InsertOutCustomer(OutCustomer OutCustomer)
        {
            var result = FreshCmsDataAccessProvider.OutCustomer.InsertOutCustomer(OutCustomer);
            return result;
        }

        public static int UpdateOutCustomer(OutCustomer OutCustomer)
        {
            var result = FreshCmsDataAccessProvider.OutCustomer.UpdateOutCustomer(OutCustomer);
            return result;
        }

        public static int DeleteOutCustomer(int cusId)
        {
            var result = FreshCmsDataAccessProvider.OutCustomer.DeleteOutCustomer(cusId);
            return result;
        }
		#endregion
	}
}